<?php

namespace app\common\validate;

use think\Validate;

class ArticleValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'article_id'     => '',
        'article_cat_id' => '对应article_cat表',
        'title'          => '标题',
        'image'          => '封面',
        'content'        => '内容',
        'source'         => '来源',
        'source_url'     => '来源地址',
        'keywords'       => '关键词',
        'description'    => '描述',
        'url'            => '外部链接',
        'target'         => '_self _blank',
        'page_views'     => '游览量',
        'is_top'         => '是否置顶 0=否 1=是',
        'status'         => '0=禁用 1=启用',
        'create_time'    => '创建日期',
        'update_time'    => '更新日期',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'index'  => [],
        'save'   => [],
        'update' => [],
        'delete' => [],
        'read'   => []
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
